package com.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 管理员表
 * @author ZM
 * @since 2020-08-14
 */
@Data
@TableName("pd_admin")
@ApiModel(value="Admin对象", description="管理员表")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "管理员ID号")
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    @ApiModelProperty(value = "角色ID数据来源于管理员角色rad_admin_role的角色IDrole_id")
    @TableField("role_id")
    private Integer roleId;

    @ApiModelProperty(value = "管理员名称")
    @TableField("admin_name")
    //@NotBlank(message = "管理员账号不能为空")
    private String adminName;

    @ApiModelProperty(value = "管理员密码")
    @TableField("admin_pwd")
    //@NotBlank(message = "管理员密码不能为空")
    private String adminPwd;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("admin_login_time")
    private Date adminLoginTime;

    @ApiModelProperty(value = "最后登录IP")
    @TableField("admin_last_ip")
    private String adminLastIp;

    @ApiModelProperty(value = "真实姓名")
    @TableField("admin_ture_name")
    private String adminTureName;

    @ApiModelProperty(value = "管理员电话")
    @TableField("admin_tel")
    private String adminTel;

    @ApiModelProperty(value = "管理员邮箱")
    @TableField("admin_mail")
    private String adminMail;

    @ApiModelProperty(value = "简介")
    @TableField("addmin_desc")
    private String addminDesc;

    @ApiModelProperty(value = "地址")
    @TableField("admin_address")
    private String adminAddress;

    @ApiModelProperty(value = "头像")
    @TableField("admin_headpic")
    private String adminHeadpic;

    @ApiModelProperty(value = "状态1正常 2禁用")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "状态1正常 2已删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "登录次数")
    @TableField("admin_login_num")
    private Integer adminLoginNum;


}
